package com.show.dao.role;



import com.show.dto.sys_role.SysRoleMenu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * 角色菜单DAO
 *
 * @Auther : yxd
 * @Param :
 * @date : 2018-02-01
 */
public interface RoleMenuRepository extends JpaRepository<SysRoleMenu, String>, JpaSpecificationExecutor<SysRoleMenu> {

    @Modifying
    @Query(value = "delete from sys_role_menu where role_id=?",nativeQuery = true)
    void delete(String roleId);
}
